projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b99d5
)
Add reverse macro for Fahrenheit/Celsius conversion.
author
oliskoli
<oliskoli>
Sun, 9 Apr 2006 19:54:37 +0000
(19:54 +0000)
committer
oliskoli
<oliskoli>
Sun, 9 Apr 2006 19:54:37 +0000
(19:54 +0000)
defs.h
patch
|
blob
|
history
diff --git
a/defs.h
b/defs.h
index eba91aa7be855c7a95255238ad05ae85df9e560c..ec15c7d99f9181838b8a5823a71d50a04ddd79bc 100644
(file)
--- a/
defs.h
+++ b/
defs.h
@@
-48,6
+48,7
@@
#define METERS_TO_MILES(a) ((a) / 1609.344)
#define FATHOMS_TO_METERS(a) ((a) * 1.8288)
+#define CELSIUS_TO_FAHRENHEIT(a) (((a) * 1.8) + 32)
#define FAHRENHEIT_TO_CELSIUS(a) (((a) - 32) / 1.8)
#define SECONDS_PER_HOUR (60L*60)